package com.msl.debezium.validate;

import javax.validation.Constraint;
import javax.validation.Payload;

import java.lang.annotation.*;

@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Constraint(validatedBy = PhoneValidate.class)
public @interface Phone {

    PhoneType value() default PhoneType.MOBILE;

    String message() default "电话号校验不通过";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
